import { routes } from "@/app";
import { Link } from "react-router";

const HomePage: React.FC = () => {
  return (
    <div className="container mx-auto p-20">
      <nav className="text-xl">
        {routes.map((r, k) => (
          <li key={k}>
            <Link to={r.path!}>
              {r.path === "/" ? "home" : r.path?.slice(1)}
            </Link>
          </li>
        ))}
      </nav>
    </div>
  );
};

export default HomePage;
